package com.ruoyi.serviceItem.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.serviceItem.domain.VerificationRecord;
import com.ruoyi.serviceItem.service.VerificationRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/verificationRecord")
public class VerificationRecordController {
    @Autowired
    private VerificationRecordService verificationRecordService;

    @GetMapping
    public R getVerificationRecordByOrderId(Long orderId){
        VerificationRecord verificationRecord = verificationRecordService.getVerificationRecordByOrderId(orderId);
        return R.ok(verificationRecord);
    }
}
